package com.hlf.modules.merchant.store.service.impl;

import com.hlf.modules.merchant.store.entity.Channel;
import com.hlf.modules.merchant.store.mapper.ChannelMapper;
import com.hlf.modules.merchant.store.service.ChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/10/20.
 */
@Service
public class ChannelServiceImpl implements ChannelService {

    @Autowired
    private ChannelMapper channelMapper;
    @Override
    public int deleteByPrimaryKey(Long id) {
        return channelMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Channel record) {
        return channelMapper.insert(record);
    }

    @Override
    public int insertSelective(Channel record) {
        return channelMapper.insertSelective(record);
    }

    @Override
    public Channel selectByPrimaryKey(Long id) {
        return channelMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Channel record) {
        return channelMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Channel record) {
        return channelMapper.updateByPrimaryKey(record);
    }

    @Override
    public Channel selectByCode(String code) {
         return channelMapper.selectByCode(code);
    }
}
